import React, {Component} from 'react';
import _ from 'underscore';

export default class DefaultErrorElement extends Component {
  render() {
    let currentStyle = {
      height:this.props.height,
      lineHeight:this.props.height+'px'
    };
    return (
      <div className="default-error" style={_.extend(currentStyle, this.props.style)}>
      	{this.props.content}
      </div>
    )
  }
}

DefaultErrorElement.defaultProps = {
  height:200,
  content:'暂无数据',
  style:{}
}
